home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_gimp.idb / usr / freeware / include / gck / gcklistbox.h.z / gcklistbox.h
Encoding:
C/C++ Source or Header  |  1999-07-21  |  6.0 KB  |  127 lines

  1. /***************************************************************************/
  2. /* GCK - The General Convenience Kit. Generally useful conveniece routines */
  3. /* for GIMP plug-in writers and users of the GDK/GTK libraries.            */
  4. /* Copyright (C) 1996 Tom Bech                                             */
  5. /*                                                                         */
  6. /* This program is free software; you can redistribute it and/or modify    */
  7. /* it under the terms of the GNU General Public License as published by    */
  8. /* the Free Software Foundation; either version 2 of the License, or       */
  9. /* (at your option) any later version.                                     */
  10. /*                                                                         */
  11. /* This program is distributed in the hope that it will be useful,         */
  12. /* but WITHOUT ANY WARRANTY; without even the implied warranty of          */
  13. /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           */
  14. /* GNU General Public License for more details.                            */
  15. /*                                                                         */
  16. /* You should have received a copy of the GNU General Public License       */
  17. /* along with this program; if not, write to the Free Software             */
  18. /* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,   */
  19. /* USA.                                                                    */
  20. /***************************************************************************/
  21.  
  22. #ifndef __GCKLISTBOX_H__
  23. #define __GCKLISTBOX_H__
  24.  
  25. #include "gcktypes.h"
  26.  
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30.  
  31. GckListBox *gck_listbox_new                        (GtkWidget *container,
  32.                                                     gint expand, gint fill, gint padding,
  33.                                                     gint width, gint height,
  34.                                                     GtkSelectionMode selection_mode,
  35.                                                     GckListBoxItem *list_items,
  36.                                                     GckEventFunction event_handler);
  37.  
  38. void        gck_listbox_destroy                    (GckListBox *listbox);
  39.  
  40. GckListBox *gck_listbox_get                        (GList *itemlist);
  41.  
  42. void        gck_listbox_prepend_item               (GckListBox *listbox,
  43.                                                     GckListBoxItem *item);
  44.  
  45. void        gck_listbox_prepend_items              (GckListBox *listbox,
  46.                                                     GList *itemlist);
  47.  
  48. void        gck_listbox_append_item                (GckListBox *listbox,
  49.                                                     GckListBoxItem *item);
  50.  
  51. void        gck_listbox_append_items               (GckListBox *listbox,
  52.                                                     GList *itemlist);
  53.  
  54. void        gck_listbox_insert_item                (GckListBox *listbox,
  55.                                                     GckListBoxItem *item,
  56.                                                     gint position);
  57.  
  58. void        gck_listbox_insert_items               (GckListBox *listbox,
  59.                                                     GList *itemlist,
  60.                                                     gint position);
  61.  
  62. GList      *gck_listbox_get_current_selection      (GckListBox *listbox);
  63.  
  64. void        gck_listbox_set_current_selection      (GckListBox *listbox);
  65.  
  66. GList      *gck_listbox_item_find_by_position      (GckListBox *listbox,
  67.                                                     gint position);
  68.  
  69. GList      *gck_listbox_item_find_by_label         (GckListBox *listbox,
  70.                                                     char *label,
  71.                                                     gint *position);
  72.  
  73. GList      *gck_listbox_item_find_by_user_data     (GckListBox *listbox,
  74.                                                     gpointer user_data,
  75.                                                     gint *position);
  76.  
  77. void        gck_listbox_delete_item_by_position    (GckListBox *listbox,
  78.                                                     gint position);
  79.  
  80. void        gck_listbox_delete_item_by_label       (GckListBox *listbox,
  81.                                                     char *label);
  82.  
  83. void        gck_listbox_delete_items_by_label      (GckListBox *listbox,
  84.                                                     GList *itemlist);
  85.  
  86. void        gck_listbox_delete_item_by_user_data   (GckListBox *listbox,
  87.                                                     gpointer user_data);
  88.  
  89. void        gck_listbox_delete_items_by_user_data  (GckListBox *listbox,
  90.                                                     GList *itemlist);
  91.  
  92. void        gck_listbox_clear_items                (GckListBox *listbox,
  93.                                                     gint start, gint end);
  94.  
  95. GList      *gck_listbox_select_item_by_position    (GckListBox *listbox,
  96.                                                     gint position);
  97.  
  98. GList      *gck_listbox_select_item_by_label       (GckListBox *listbox,
  99.                                                     char *label);
  100.  
  101. GList      *gck_listbox_select_item_by_user_data   (GckListBox *listbox,
  102.                                                     gpointer user_data);
  103.  
  104. GList      *gck_listbox_unselect_item_by_position  (GckListBox *listbox,
  105.                                                     gint position);
  106.  
  107. GList      *gck_listbox_unselect_item_by_label     (GckListBox *listbox,
  108.                                                     char *label);
  109.  
  110. GList      *gck_listbox_unselect_item_by_user_data (GckListBox *listbox,
  111.                                                     gpointer user_data);
  112.  
  113. void        gck_listbox_select_all                 (GckListBox *listbox);
  114.  
  115. void        gck_listbox_unselect_all               (GckListBox *listbox);
  116.  
  117. void        gck_listbox_disable_signals            (GckListBox *listbox);
  118.  
  119. void        gck_listbox_enable_signals             (GckListBox *listbox);
  120.  
  121. #ifdef __cplusplus
  122. }
  123. #endif
  124.  
  125.  
  126. #endif
  127.